home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
qbsnip.zip
/
EXITERLV.BAS
< prev
next >
Wrap
BASIC Source File
|
1997-06-20
|
377b
|
16 lines
' EXITERLV.BAS
'
' Donated to the public domain
' No warranties or guarantees are expressed or implied.
'
'Purpose : To exit program returning an error level
DECLARE SUB ExitWithRC ALIAS "_exit" (BYVAL RC AS INTEGER)
'Just set ErrLev% to the errorlevel you want or just ExitWithRC 13
'DO NOT RUN THIS IN THE QUICKBASIC IDE!!!
ErrLev% = 13
ExitWithRC ErrLev%